package cn.z2huo.knowledge.thinkinginjava.finalize;

/**
 * <p>
 *
 * @author z2huo
 */
class TerminationCondition {

    public static void main(String[] args) {
        Book novel = new Book(true);
        // proper cleanup
        novel.checkIn();
        // Drop the reference, forget to clean up
        new Book(true);
        // force garbage collection & finalization
        System.gc();
    }

}
